package com.guigu.serviceorder.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.guigu.common_util.pojo.IdWorker.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("com.guigu.serviceorder.mapper")
public class QingChengConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker(1,1);
    }

    @Bean
    public Queue queue_skuback() {
        return new Queue("queue.skuback");
    }



}
